# -*- coding: utf-8 -*-
# @File    : get_user_pwd.py
# @Date    : 2021-11-16
# @Author  : Richard

import os
import time

class GetUserPwd(object):
    """
    根据用户名称返回用户密码，待完善
    """

    def __init__(self):
        pass

    def get_pwd(self, user):
        try:
            pwd_list = {"WEBDOCUMENT": "!QAZxsw21qaz", "NOTICEV2": "!QAZxsw21qaz",
                        "GOV_MEETING_ROOM_MANAGER": "GOV_MEETING_ROOM_MANAGER",
                        "GOV_SYSTEM_MANAGEMENT": "GOV_SYSTEM_MANAGEMENT",
                        "GOV_LEADERSHIP_AGENDA": "GOV_LEADERSHIP_AGENDA",
                        "MP": "Dmdba@963", "PORTAL": "Dmdba@963", "OA9_5_0_GXBGT": "Dmdba@963"}
            pwd = pwd_list[str(user).upper()]
            if pwd:
                return pwd
        except Exception as Err:
            print("获取用户密码发生错误：{0}".format(Err))
